//
//  BMLineView.m
//  Rail
//
//  Created by hychen on 2018/3/4.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import "BMLineView.h"

@implementation BMLineView


// 默认横线
+ (instancetype)defaultLineView
{
    BMLineView *lineView = [self lineViewWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 0.5)];
    return lineView;
}

+ (instancetype)lineViewWithFrame:(CGRect)frame
{
    BMLineView *lineView = [[self alloc] initWithFrame:frame];
    lineView.backgroundColor = ColorSepLine;
    lineView.alpha = 1;
    return lineView;
}

+ (instancetype)lineViewWithFrame:(CGRect)frame color:(UIColor *)color
{
    BMLineView *lineView = [[self alloc] initWithFrame:frame];
    lineView.backgroundColor = color;
    lineView.alpha = 1;
    return lineView;
}

+ (instancetype)lineView247ColorWithFrame:(CGRect)frame {
    return [BMLineView lineViewWithFrame:frame color:Color_RGB(247, 247, 247)];
}

@end
